package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmHuaYaoZhuSheJiMapper;
import com.ruoyi.web.tdm.domain.TdmHuaYaoZhuSheJi;
import com.ruoyi.web.tdm.service.ITdmHuaYaoZhuSheJiService;

/**
 * ID-10 -22 化药注射剂Service业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmHuaYaoZhuSheJiServiceImpl implements ITdmHuaYaoZhuSheJiService 
{
    @Autowired
    private TdmHuaYaoZhuSheJiMapper tdmHuaYaoZhuSheJiMapper;

    /**
     * 查询ID-10 -22 化药注射剂
     * 
     * @param id ID-10 -22 化药注射剂主键
     * @return ID-10 -22 化药注射剂
     */
    @Override
    public TdmHuaYaoZhuSheJi selectTdmHuaYaoZhuSheJiById(Long id)
    {
        return tdmHuaYaoZhuSheJiMapper.selectTdmHuaYaoZhuSheJiById(id);
    }

    /**
     * 查询ID-10 -22 化药注射剂列表
     * 
     * @param tdmHuaYaoZhuSheJi ID-10 -22 化药注射剂
     * @return ID-10 -22 化药注射剂
     */
    @Override
    public List<TdmHuaYaoZhuSheJi> selectTdmHuaYaoZhuSheJiList(TdmHuaYaoZhuSheJi tdmHuaYaoZhuSheJi)
    {
        return tdmHuaYaoZhuSheJiMapper.selectTdmHuaYaoZhuSheJiList(tdmHuaYaoZhuSheJi);
    }

    /**
     * 新增ID-10 -22 化药注射剂
     * 
     * @param tdmHuaYaoZhuSheJi ID-10 -22 化药注射剂
     * @return 结果
     */
    @Override
    public int insertTdmHuaYaoZhuSheJi(TdmHuaYaoZhuSheJi tdmHuaYaoZhuSheJi)
    {
        tdmHuaYaoZhuSheJi.setCreateTime(DateUtils.getNowDate());
        return tdmHuaYaoZhuSheJiMapper.insertTdmHuaYaoZhuSheJi(tdmHuaYaoZhuSheJi);
    }

    /**
     * 修改ID-10 -22 化药注射剂
     * 
     * @param tdmHuaYaoZhuSheJi ID-10 -22 化药注射剂
     * @return 结果
     */
    @Override
    public int updateTdmHuaYaoZhuSheJi(TdmHuaYaoZhuSheJi tdmHuaYaoZhuSheJi)
    {
        tdmHuaYaoZhuSheJi.setUpdateTime(DateUtils.getNowDate());
        return tdmHuaYaoZhuSheJiMapper.updateTdmHuaYaoZhuSheJi(tdmHuaYaoZhuSheJi);
    }

    /**
     * 批量删除ID-10 -22 化药注射剂
     * 
     * @param ids 需要删除的ID-10 -22 化药注射剂主键
     * @return 结果
     */
    @Override
    public int deleteTdmHuaYaoZhuSheJiByIds(Long[] ids)
    {
        return tdmHuaYaoZhuSheJiMapper.deleteTdmHuaYaoZhuSheJiByIds(ids);
    }

    /**
     * 删除ID-10 -22 化药注射剂信息
     * 
     * @param id ID-10 -22 化药注射剂主键
     * @return 结果
     */
    @Override
    public int deleteTdmHuaYaoZhuSheJiById(Long id)
    {
        return tdmHuaYaoZhuSheJiMapper.deleteTdmHuaYaoZhuSheJiById(id);
    }
}
